package com.jeasonzhao.report.vml.base;


public class RoundRect extends Rect
{
    private double m_attr_arcsize = 0.2;
    public RoundRect()
    {
        super();
    }

    public RoundRect(Vector2D topleft,Vector2D size)
    {
        super();
        setTopLeft(topleft);
        setSize(size);
    }

    public RoundRect(Vector2D topleft,int width,int height)
    {
        super();
        setTopLeft(topleft);
        setSize(width,height);
    }

    public RoundRect(int top,int left,int width,int height)
    {
        super();
        setTopLeft(top,left);
        setSize(width,height);
    }

    public double getArcsize()
    {
        return m_attr_arcsize;
    }

    public void setArcsize(double arcsize)
    {
        this.m_attr_arcsize = arcsize;
    }

    public static void main(String[] argv)
        throws Exception
    {
        RoundRect rect = new RoundRect(0,0,100,200);
        rect.setBackDepth(10);
        rect.setFillColor(new Color("#FF0000"));
        rect.setFilled(true);
        rect.setArcsize(1);
        System.out.println(rect.getScript());
    }

}
